/**
 * 
 */
package com.owen.he.jee.dao.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.owen.he.jee.dao.UserDao;
import com.owen.he.jee.model.User;

@Repository
public class UserDaoImpl implements UserDao {

	private @Resource HibernateDao<User, Integer> dao;
	
	@Override
	public boolean isAgentExist(String agentName) {
		return false;
	}

	public List getList() {
		String hql = "from User";
		Map<String,Object> map = new HashMap<>();
		return dao.find(hql, null);
	}
	
	
}
